﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//定义一个员工类，存放用户的工号、姓名和部门信息；
//定义两个构造函数，一个是无参；
//一个有参构造函数，对类的属性进行初始化。
namespace Demo02
{
    class Employee
    {
        public int ID { get; set; }

        public string Name { get; set; }
        public string Department { get; set; }

        public void sayhi() {
            Console.WriteLine("工号{0}，我叫{1}，我的部门是{2}",this.ID,this.Name,this.Department);
        }
        public Employee() { 

        }
        public Employee(int ID,string name,string department) {
            this.ID = ID;
            this.Name = name;
            this.Department = department;
        }

    }
}
